package com.example.kugou.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 *  歌曲MV
 */
@ApiModel("歌曲MV实体类")
public class Mv {
    /**
     * Mv id
     */
    @ApiModelProperty("MVid")
    private Integer vid;
    /**
     * 名字
     */
    @ApiModelProperty("歌曲名字")
    private String name;
    /**
     * 上传时间
     */
    @ApiModelProperty("歌曲上传时间")
    private String time;
    /**
     *外键   关联mv类别
     */
    @ApiModelProperty("mv类别id")
    private Integer mvid;
    /**
     *封面图片路径
     */
    @ApiModelProperty("MV封面pic路径")
    private String mpic;
    /**
     * mv视频路径
     */
    @ApiModelProperty("MV视频路径")
    private String video;

    /**
     * 对应歌手
     */
    @ApiModelProperty("歌手id")
    private Integer singerid;
    /**
     * 对应歌曲
     */
    @ApiModelProperty("歌曲id")
    private Integer singid;

    private Singer singer;

    private Sing sing;

    public Singer getSinger() {
        return singer;
    }

    public void setSinger(Singer singer) {
        this.singer = singer;
    }

    public Sing getSing() {
        return sing;
    }

    public void setSing(Sing sing) {
        this.sing = sing;
    }

    public Integer getSingid() {
        return singid;
    }

    public void setSingid(Integer singid) {
        this.singid = singid;
    }

    public Mv(Integer vid, String name, String time, Integer mvid, String mpic, String video, Integer singerid, Integer singid, MvType mvType) {
        this.vid = vid;
        this.name = name;
        this.time = time;
        this.mvid = mvid;
        this.mpic = mpic;
        this.video = video;
        this.singerid = singerid;
        this.singid = singid;
        this.mvType = mvType;
    }

    public Integer getSingerid() {
        return singerid;
    }

    public void setSingerid(Integer singerid) {
        this.singerid = singerid;
    }

    private MvType mvType;

    public MvType getMvType() {
        return mvType;
    }

    public void setMvType(MvType mvType) {
        this.mvType = mvType;
    }

    public Mv(Integer vid, String name, String time, Integer mvid, String mpic, String video) {
        this.vid = vid;
        this.name = name;
        this.time = time;
        this.mvid = mvid;
        this.mpic = mpic;
        this.video = video;
    }

    public Mv() {
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getMvid() {
        return mvid;
    }

    public void setMvid(Integer mvid) {
        this.mvid = mvid;
    }

    public String getMpic() {
        return mpic;
    }

    public void setMpic(String mpic) {
        this.mpic = mpic;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    @Override
    public String toString() {
        return "Mv{" +
                "vid=" + vid +
                ", name='" + name + '\'' +
                ", time='" + time + '\'' +
                ", mvid=" + mvid +
                ", mpic='" + mpic + '\'' +
                ", video='" + video + '\'' +
                '}';
    }

    public Mv(Integer vid, String name, String time, Integer mvid, String mpic, String video, Integer singerid, MvType mvType) {
        this.vid = vid;
        this.name = name;
        this.time = time;
        this.mvid = mvid;
        this.mpic = mpic;
        this.video = video;
        this.singerid = singerid;
        this.mvType = mvType;
    }
}
